home *** CD-ROM | disk | FTP | other *** search
/ MacTech 1 to 12 / MacTech-vol-1-12.toast / Source / MacTech® Magazine / Volume 07 - 1991 / 07.08 Aug 91 / Browser sources / CBrowserPane.h < prev    next >
Encoding:
C/C++ Source or Header  |  1991-01-19  |  1.5 KB  |  47 lines  |  [TEXT/KAHL]

  1. /******************************************************/
  2. /*                                                                                                      */
  3. /*    CBrowserPane.h                                                                      */
  4. /*                                                                                                      */
  5. /*    Classes for Browser panes                                                  */
  6. /*                                                                                                      */
  7. /*    Written in Think C version 4.0.2                                  */
  8. /*    Based on CStarterPane.h                                                        */
  9. /*                                                                                                      */
  10. /*    Allen Stenger    January 1991                                              */
  11. /*                                                                                                      */
  12. /******************************************************/
  13.  
  14. #define _H_CBrowserPane
  15. #include <CPanorama.h>
  16.  
  17. struct CBrowserPane : CPanorama {
  18.  
  19.     /* instance variables */
  20.     char        **itsDataH; 
  21.         /* handle to text -                                                             */
  22.         /*passed from and owned by CBrowserDoc instance        */
  23.     short        itsLineCt;    
  24.         /* number of lines in **itsDataH                                     */
  25.     short        itsLineHeight;     
  26.         /* height of a line in this window (pixels)             */
  27.     long        **itsLineStartsH;    
  28.         /* line starts table - passed from and owned by     */
  29.         /* CBrowserDoc instance - see CBrowserDoc for         */
  30.         /* definition                                                                            */
  31.  
  32.     /* Methods - same function as CStarterPane except        */
  33.     /* as noted                                                                                 */
  34.     void        IBrowserPane(CView *anEnclosure, 
  35.                             CBureaucrat *aSupervisor,
  36.                             short aWidth, short aHeight,
  37.                             short aHEncl, short aVEncl,
  38.                             SizingOption aHSizing, 
  39.                             SizingOption aVSizing,
  40.     /* added parameters follow */
  41.                             char **theDataH,     /* data of file                */
  42.                             short theLineCt,    /* line count of file    */
  43.                             long **theLineStartsH);
  44.                                 /* line start table of file                     */
  45.     void        Draw(Rect *area);
  46. };
  47.